{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="row top-search" style="margin:10px;margin-left:-20px;">
	<form class="ajaxForm5" id="ajax_seria" method="post" action="{:url('admin/News/index')}">
		<div class="col-sm-12" >
		    <!-- <small class="margin-left-10">按照栏目分类：</small> -->
            <small>
                <select name="cid" class="ajax_request">
                    <option value="">按照栏目</option>
                    {foreach name="news_cate" item="vo"}
                    <option value="{$vo.id}">|-{$vo.name}</option>
                    {/foreach}
                </select>
            </small>
            <small>
                <select name="type" class="ajax_request">
                    <option value="">按属性</option>
                    <option value="r">热门【r】</option>
                    <option value="t">推荐【t】</option>
                    <option value="z">置顶【z】</option>
                    <option value="y">原创【y】</option>
                </select>
            </small>
            <small>
                <select name="status" class="ajax_request">
                    <option value="">按状态</option>
                    <option value="1">开放</option>
                    <option value="0">未开放</option>
                </select>
            </small>
            </div>
            <div class="col-sm-5  padding-top-10"  style="margin-left:10px;">
            	<div class="input-group">
					<span class="input-group-addon">
						<i class="ace-icon fa fa-calendar"></i>
					</span>
					<input class="form-control" id="test10" name="addtime" placeholder="点击选择日期范围" type="text">
					<span class="input-group-btn">
						<button class="btn btn-sm btn-danger" type="submit">
							<i class="ace-icon fa fa-search bigger-110"></i>
							搜索
						</button>
					</span>
				</div>
			</div>
			<div class="col-sm-4  padding-top-10"  style="margin-left:10px;">
				<div class="input-group">
					<span class="input-group-addon">
						<i class="ace-icon fa fa-check"></i>
					</span>					
					<input class="form-control" name="title" placeholder="请输入标题"  type="text">
					<span class="input-group-btn">
						<button class="btn btn-sm btn-danger" type="submit">
							<i class="ace-icon fa fa-search bigger-110"></i>
							搜索
						</button>
					</span>
				</div>
			</div>
			<div class="col-sm-1  padding-top-10"  style="margin-left:10px;">
						<a class="btn btn-sm btn-purple" href="{:url('admin/News/index')}" >
							<i class="ace-icon fa fa-globe bigger-110"></i>
							显示全部
						</a>				
			</div>

	</form>
</div>
<div class="rows top-button col-sm-12">
     <p>
     	<a class="btn btn-sm btn-info" href="{:url('admin/News/news_add')}">
			<i class="ace-icon fa fa-plus "></i>
			添加新闻
		</a>
		<a href="{:url('admin/News/news_del')}"  class="btn btn-sm btn-warning ajaxAll" data-icon="fa-trash-o" >
			<i class="ace-icon fa fa-trash-o "></i>
			批量删除
		</a>
		<a class="btn btn-sm btn-success margin-left-10 ajaxSortSubmit">
			<i class="ace-icon fa fa-signal  "></i>
			批量排序
		</a>
	</p>
</div>
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<div class="row">
			<div class="col-xs-12">
				<form class="form-horizontal ajaxSort ajaxForm2" action="{:url('admin/News/news_sort')}" method="post">
					<table id="simple-table" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
							    <th class="center">
									<label class="pos-rel">
										<input type="checkbox" class="ace checkAll" />
										<span class="lbl"></span>
									</label>
								</th>
								<th>ID</th>
								<th class="hidden-480">缩略图</th>
								<th>新闻标题</th>
								<th>所属栏目</th>
								<th class="hidden-480">新闻属性</th>
								<th>是否开放</th>
								<th>排序</th>
								<th class="hidden-480">添加时间</th>
								<th>操作</th>
							</tr>
						</thead>

						<tbody id="ajax_data">
						   {include file="news/ajax_index" /}
						</tbody>
					</table>
			    </form>
			</div><!-- /.span -->
		</div><!-- /.row -->

		<div class="hr hr-18 dotted hr-double"></div>
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}
   </body>
</html>
{block name="script"}
<script src="__STATIC__/layui/layui.all.js"></script>
<link href="__STATIC__/layui/css/layui.css" rel="stylesheet"/>
<script type="text/javascript">
	layui.use('laydate', function(){
		  var laydate = layui.laydate;
		 //时间选择器
		  laydate.render({
		    elem: '#test10'
		    ,type: 'datetime'
		    ,range: true
		  });
	})
</script>
{/block}